﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using model;
using Bll;

public partial class Applicationl : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] == null)
        {
            Response.Write("<script>alert('请先登录！');history.back();</script>");
        }
        BindGridView();
    }
    void BindGridView()
    {
        string sword = "";
        string kword = "";
        AppIntroBll bll = new AppIntroBll();
        List<AppIntro> appintro = bll.GetList(sword,kword);
        GridView1.DataSource = appintro;
        GridView1.DataBind();
    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        BindGridView();
    }
}